<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        /* 
        需求:求任意个数最大值
         */
         function max(){
             var maxValue=arguments[0];
             for(var i=0;i<arguments.length;i++){
                 if(arguments[i]>maxValue){
                     maxValue=arguments[i]
                 }
             }
             return maxValue;
         }

         console.log(max(1,2,8,24,13))
    </script>
</head>
<body>
    
</body>
</html>